package cloudgamesaumysql

import (
	"gorm.io/gorm"
	"time"
)

/*
  @author liubogeng
  @date   2024/8/28 11:04
*/

// CGGameAUUser 云游戏AU用户表
type CGGameAUUser struct {
	ID               int64          `json:"id" gorm:"column:id;type:bigint;primaryKey;autoIncrement;comment:ID"`
	UserID           int64          `json:"user_id" gorm:"column:user_id;type:bigint;not null;default:0;comment:用户ID"`
	NickName         string         `json:"nick_name" gorm:"column:nick_name;type:varchar(32);not null;default:'';comment:用户昵称"`
	Avatar           string         `json:"avatar" gorm:"column:avatar;type:varchar(64);not null;default:'';comment:用户头像"`
	Sex              int            `json:"sex" gorm:"column:sex;type:tinyint;not null;default:0;comment:用户的性别；0未知 1男 2女;"`
	Email            string         `json:"email" gorm:"column:email;type:varchar(256);not null;default:'';comment:用户邮箱号"`
	SelfIntroduction string         `json:"self_introduction" gorm:"column:self_introduction;type:varchar(256);not null;default:'';comment:用户自我介绍"`
	CreatedAt        time.Time      `json:"created_at" gorm:"column:created_at;type:datetime;comment:该条记录创建时间"`
	UpdatedAt        time.Time      `json:"updated_at" gorm:"column:updated_at;type:datetime;comment:该条记录修改时间"`
	DeletedAt        gorm.DeletedAt `json:"-" gorm:"index;type:datetime;comment:该条记录删除时间"`
}

func (CGGameAUUser) TableName() string {
	return "cg_game_au_user"
}
